package com.tom.demo;

import com.tom.demo.view.IndexView;
import de.felixroske.jfxsupport.AbstractJavaFxApplicationSupport;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@Slf4j
@SpringBootApplication
public class FxApplication extends AbstractJavaFxApplicationSupport {
    public static void main(String[] args) {
        //这里是启动springboot的做法
        //SpringApplication.run(FxApplication.class,args);

        //此时我们需要启动的是GUI
        launch(FxApplication.class, IndexView.class,args);
        log.info("项目启动成功，端口8083");
    }
}
